import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqHitEggTouchInfoHelper } from "./SeqHitEggTouchInfoHelper";
type int = number;
//class SHitEggActiveProcessInfo
    
    export  class SHitEggActiveProcessInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SHitEggActiveProcessInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeBool(this.isOpen);
            arg1.writeInt(this.activeId);
            arg1.writeInt(this.process);
            arg1.writeInt(this.loop);
            arg1.writeInt(this.touchNode);
            arg1.writeDate(this.touchDt);
            arg1.writeDate(this.endDt);
            arg1.writeInt(this.expAddVal);
            arg1.writeDate(this.endExpDt);
            SeqHitEggTouchInfoHelper.write(arg1, this.touchPlayers);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.isOpen = arg1.readBool();
            this.activeId = arg1.readInt();
            this.process = arg1.readInt();
            this.loop = arg1.readInt();
            this.touchNode = arg1.readInt();
            this.touchDt = arg1.readDate();
            this.endDt = arg1.readDate();
            this.expAddVal = arg1.readInt();
            this.endExpDt = arg1.readDate();
            this.touchPlayers = SeqHitEggTouchInfoHelper.read(arg1);
            return;
        }

        public /* const */_type: int=12386;

        public /* var */isOpen: Boolean;

        public /* var */activeId: int;

        public /* var */process: int;

        public /* var */loop: int;

        public /* var */touchNode: int;

        public /* var */touchDt: Date;

        public /* var */endDt: Date;

        public /* var */expAddVal: int;

        public /* var */endExpDt: Date;

        public /* var */touchPlayers: Array<any>;

        public static /* var */_regist: SHitEggActiveProcessInfo;
    }

            SHitEggActiveProcessInfo._regist = new SHitEggActiveProcessInfo(true);
        